package cn.gcyl.module.biz.dal.mysql.useragreement;

import cn.gcyl.framework.common.pojo.PageResult;
import cn.gcyl.framework.mybatis.core.mapper.BaseMapperX;
import cn.gcyl.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.gcyl.module.biz.controller.admin.useragreement.vo.*;
import cn.gcyl.module.biz.dal.dataobject.useragreement.UserAgreementDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户协议 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface UserAgreementMapper extends BaseMapperX<UserAgreementDO> {

    default PageResult<UserAgreementDO> selectPage(UserAgreementPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<UserAgreementDO>()
                .orderByDesc(UserAgreementDO::getId));
    }

}